﻿using IntelligentAgriculture.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentAgriculture.Domain.Interface
{
    public interface IDepartMentRepository
    {

        /// <summary>
        /// 获取所有部门
        /// </summary>
        /// <returns></returns>
        Task<IQueryable<Department>> DepartMnet();
        /// <summary>
        /// 获取部门列表
        /// </summary>
        /// <param name="departName"></param>
        /// <param name="departTypeId"></param>
        /// <param name="departState"></param>
        /// <returns></returns>
        Task<List<Department>> DepartMnetList(string departName,int departTypeId,int departState);
        /// <summary>
        /// 新增部门
        /// </summary>
        /// <param name="department"></param>
        /// <returns></returns>
        Task<int> Add(Department department);
        /// <summary>
        /// 部门树形
        /// </summary>
        /// <param name="pid"></param>
        /// <returns></returns>
        Task<List<MenuList>> MenuLIst(int pid);
        /// <summary>
        /// 更新部门
        /// </summary>
        /// <param name="departId"></param>
        /// <returns></returns>
        Task<int> Delete(int departId);

    }




}
